package com.example.demo.controller;

import com.example.demo.model.Plant;
import com.example.demo.service.MPlantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by Administrator on 2018\6\29 0029.
 */
@RestController
public class MLegalPersonController {

    @Autowired
    private MPlantService MPlantService;
    /**
     * 查询所有工厂信息
     */
    @GetMapping("legalPersonPlant/queryAllPlant")
    public List<Plant> queryAllPlant(){

        return MPlantService.queryAll();
    }
}
